package org.van.blog.constant;

public interface ErrorConstant {

    interface Common {
        static final String PARAM_IS_EMPTY = "PARAM_IS_EMPTY";
        static final String INVALID_PARAM = "INVALID_PARAM";
        static final String CAN_NOT_FIND_PARAM_TO_CONTIUNE = "CAN_NOT_FIND_PARAM";
    }

    interface Article {
        static final String UPDATE_ARTICLE_FAIL = "UPDATE_ARTICLE_FAIL";
        static final String ADD_NEW_ARTICLE_FAIL = "ADD_NEW_ARTICLE_FAIL";
        static final String DELETE_ARTICLE_ERROR = "DELETE_ARTICLE_ERROR";
        static final String TITLE_IS_TOO_LONG = "TITLE_IS_TOO_LONG";
        static final String TITLE_CAN_NOT_EMPTY = "TITLE_CAN_NOT_EMPTY";
        static final String CONTENT_CAN_NOT_EMPTY = "CONTENT_CAN_NOT_EMPTY";
        static final String CONTENT_IS_TOO_LONG = "CONTENT_IS_TOO_LONG";

    }

    interface Att {
        static final String ADD_NEW_ATT_FAIL = "ADD_NEW_ATT_FAIL";
        static final String UPDATE_ATT_FAIL = "UPDATE_ATT_FAIL";
        static final String DELETE_ATT_FAIL = "DELETE_ATT_FAIL";
        static final String UPLOAD_FILE_FAIL = "UPLOAD_FILE_FAIL";
    }

    interface Comment {
        static final String ADD_NEW_COMMENT_FAIL = "ADD_NEW_COMMENT_FAIL";
        static final String UPDATE_COMMENT_FAIL = "UPDATE_COMMENT_FAIL";
        static final String DELETE_COMMENT_FAIL = "DELETE_COMMENT_FAIL";
        static final String COMMENT_NOT_EXIST = "COMMENT_NOT_EXIST";
    }

    interface Option {
        static final String DELETE_OPTION_FAIL = "DELETE_OPTION_FAIL";
        static final String UPDATE_OPTION_FAIL = "UPDATE_OPTION_FAIL";
    }

    interface Meta {
        static final String ADD_META_FAIL = "ADD_META_FAIL";
        static final String UPDATE_META_FAIL = "UPDATE_META_FAIL";
        static final String DELETE_META_FAIL = "DELETE_META_FAIL";
        static final String NOT_ONE_RESULT = "NOT_ONE_RESULT";
        static final String META_IS_EXIST = "META_IS_EXIST";
    }

    interface Auth {
        static final String USERNAME_PASSWORD_IS_EMPTY = "USERNAME_PASSWORD_IS_EMPTY";
        static final String USERNAME_PASSWORD_ERROR = "USERNAME_PASSWORD_ERROR";
        static final String NOT_LOGIN = "NOT_LOGIN";
    }

}
